﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using thaihua.BusinessLayer;

/// <summary>
/// Summary description for ServiceFactory
/// </summary>
/// 
namespace thaihua.Service
{
    public class ServiceFactory
    {
        private static thaihuaws.Service ws = null;
        private static WeightFactory _weightFactory = null;
        public ServiceFactory()
        {
            
        }

        public static thaihuaws.Service GetThaihuaWS
        {
            get
            {
                if (ws == null) 
                {
                    ws = new thaihuaws.Service();
                }
                return ws;
            }
        }

        public static thaihua.BusinessLayer.WeightFactory GetWeightFactory
        {
            get
            {
                if (_weightFactory == null) 
                {
                    _weightFactory = new WeightFactory();
                }
                return _weightFactory;
            }
        }
    }
}